package com.comm.features;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
// 开启Eureka中DiscoveryClient实现
@EnableDiscoveryClient
public class Application {

    @RequestMapping(value = "/")
    public String index(){
        return "welcome to ch-learn-springboot-demo";
    }

    public static void main(String[] args) {
        SpringApplication.run(Application.class);
    }
}
